/* ===================================
   PANEL DE SISTEMA
   =================================== */

.panel-sistema {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.6); /* MARCO MÁS GRUESO Y VISIBLE */
  border-radius: 8px;
  padding: 15px; /* PADDING AUMENTADO */
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  color: white;
  z-index: 100;
  max-width: 220px;
  line-height: 1.5;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
}


.panel-sistema .line {
  opacity: 0;
  transform: translateX(-10px);
  margin-bottom: 6px;
}

.panel-sistema .line.show {
  animation: lineAppear 0.9s ease forwards;
}

.panel-sistema .line.glitch {
  animation: microGlitch 0.18s ease-in-out 2;
}

.panel-sistema .line:last-child {
  margin-bottom: 0;
}

@keyframes lineAppear {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes microGlitch {
  0% { transform: translateX(0); opacity: 1; }
  25% { transform: translateX(2px); opacity: 0.9; }
  50% { transform: translateX(-2px); opacity: 1; }
  75% { transform: translateX(1px); opacity: 0.95; }
  100% { transform: translateX(0); opacity: 1; }
}

/* Media queries para móviles */
@media (max-width: 768px) {
  .panel-sistema {
    position: fixed !important;
    bottom: 15px !important;
    right: 15px !important;
    left: auto !important;
    top: auto !important;
    font-size: 10px !important;
    padding: 10px !important;
    max-width: 140px !important;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    color: white;
    z-index: 200;
    line-height: 1.3;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.35);
  }

  .panel-sistema .line {
    margin-bottom: 4px;
  }

  .panel-sistema .line:last-child {
    margin-bottom: 0;
  }
}